public class Method3 {
    public static void main(String[] args) {
        double area1, area2;
        area1 = area(1.0, 33.0, true);
        area2 = area(1.0);
        System.out.println(area1);
        System.out.println(area2);
    }

    public static double area(double a, double b, boolean flag) {
        if (flag) {
            return a * b;
        } else {
            return a * b / 2;
        }
    }

    public static double area(double r) {
        return 3.14 * r * r;
    }


}
